package com.rtf.framework.es.common;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @Classname AppEsPage
 * @Description scroll 分页查询
 * @Date 2021/1/12 7:08 上午
 * @Created by lichong
 */
@Data
@ToString
public class AppEsScrollPage<T> {

    /**
     * 响应的scrollId
     */
    private String scrollId;

    /**
     * 每页显示多少条
     */
    private int pageSize;

    /**
     * 本页的数据列表
     */
    private List<T> recordList;


    public AppEsScrollPage(String scrollId, int pageSize, List<T> recordList) {
        this.scrollId = scrollId;
        this.pageSize = pageSize;
        this.recordList = recordList;
    }
}

